import requests
import os,json
from goods_feedback.public.get_yaml import doYaml
from goods_feedback.public.h5_header import *
from goods_feedback.config.setting import *

rs=doYaml.get_data(os.path.join(data_path,'userquestions.yaml'))
based_url='{0}{1}'.format(h5_url,rs['path'])
method=rs['method']
payload=rs['data']
headers=form_headers

def user_questions_search():
    re=requests.request(method,based_url,headers=headers,params=payload).json()
    print(re['rows'][0]['id'])
    return re

user_questions_search()



